quartz: Get size from wrapper, not drawable
authorKristian Rietveld <kris@gtk.org>
Wed, 15 Sep 2010 09:36:13 +0000 (11:36 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:34 +0000 (15:11 +0200)
gdk/quartz/gdkdrawable-quartz.c

index 4dbce4b049993839f4f8b3f79533ca8f95d80202..e9ccc560b0f633a6f97f52eb56522416524db8cd 100644 (file)
@@ -96,7 +96,7 @@ gdk_quartz_ref_cairo_surface (GdkDrawable *drawable)
     {
       int width, height;
 
-      gdk_drawable_get_size (drawable, &width, &height);
+      gdk_drawable_get_size (impl->wrapper, &width, &height);
       impl->cairo_surface = gdk_quartz_create_cairo_surface (drawable,
                                                              width, height);
     }